package com.youfan.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName("yun_order")
@Data
public class YoufanOrder implements Serializable {

            private Long id ;
            private Long userId;//'用户id',
            private Long productId;//商品id
            private String orderSn;//'订单编号',
            private Double totalAmount;//'订单总金额',
            private Double payAmount;//'应付金额（实际支付金额）',
            private Integer sourceType;//'0 PC订单 1 app订单',
            private Integer payType;// '支付方式：-1，未支付 1->支付宝；2->微信；3、银联支付，4、京东支付',
            private Integer status ;// '订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单；6已退货',
            private Integer orderType ;// '订单类型：0->正常订单；1->秒杀订单',
            private String deliveryCompany;//'物流公司',
            private String deliverySn;//'物流单号',
            private Integer autoConfirm_day;//'自动确认时间（天）',
            private Long integration;// '可以获得的积分',
            private Long growth;//'可以获得的成长值',
            private String receiverName;// '收货人姓名',
            private String receiverPhone;// '收货人电话',
            private String receiverPost_code;// '收货人邮编',
            private String receiverProvince;//'省份/直辖市',
            private String receiverCity;//'城市',
            private String receiverRegion;//'区 县',
            private String receiverDetail_address ;// '详细地址',
            private String remark ;// '订单备注',
            private Double freightAmount ;//'运费金额',
            private Long jifenid ;//'积分id',
            private Double integrationAmount;//'积分抵扣金额',
            private Long conpusid ;//'优惠券id',
            private Double couponAmount;//'优惠劵抵扣金额',
            private Long hongbaoid;//'红包id',
            private Double hongbaoamount ;//'红包金额',
            private Long tuangouid ;//'团购id',
            private Long zhidinghuodongid ;//'指定活动id',
            private Date paymentTime ;// '支付时间',
            private Date deliveryTime;// '发货时间',
            private Date receiveTime ;// '确认收货时间',
            private Date updateTime ;;//'修改时间',
            private Date createTime;//'订单创建时间',

           @TableField(exist = false)
           private Integer pageNum;
           @TableField(exist = false)
           private Integer pageSize;
           //重试次数
           @TableField(exist = false)
           private Integer count;

    @Override
    public String toString() {
        return "YoufanOrder{" +
                "id=" + id +
                ", userId=" + userId +
                ", productId=" + productId +
                ", orderSn='" + orderSn + '\'' +
                ", totalAmount=" + totalAmount +
                ", payAmount=" + payAmount +
                ", sourceType=" + sourceType +
                ", payType=" + payType +
                ", status=" + status +
                ", orderType=" + orderType +
                ", deliveryCompany='" + deliveryCompany + '\'' +
                ", deliverySn='" + deliverySn + '\'' +
                ", autoConfirm_day=" + autoConfirm_day +
                ", integration=" + integration +
                ", growth=" + growth +
                ", receiverName='" + receiverName + '\'' +
                ", receiverPhone='" + receiverPhone + '\'' +
                ", receiverPost_code='" + receiverPost_code + '\'' +
                ", receiverProvince='" + receiverProvince + '\'' +
                ", receiverCity='" + receiverCity + '\'' +
                ", receiverRegion='" + receiverRegion + '\'' +
                ", receiverDetail_address='" + receiverDetail_address + '\'' +
                ", remark='" + remark + '\'' +
                ", freightAmount=" + freightAmount +
                ", jifenid=" + jifenid +
                ", integrationAmount=" + integrationAmount +
                ", conpusid=" + conpusid +
                ", couponAmount=" + couponAmount +
                ", hongbaoid=" + hongbaoid +
                ", hongbaoamount=" + hongbaoamount +
                ", tuangouid=" + tuangouid +
                ", zhidinghuodongid=" + zhidinghuodongid +
                ", paymentTime=" + paymentTime +
                ", deliveryTime=" + deliveryTime +
                ", receiveTime=" + receiveTime +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                '}';
    }
}
